import useUpdate from "@/hooks/useUpdate";
import { Button } from "antd";
import React from "react";

const UseUpdate: React.FC = () => {
  const forceUpdate = useUpdate();

  return (
    <div style={{ padding: 50 }}>
      <h4>时间:{new Date().toLocaleTimeString()}</h4>
      <Button onClick={forceUpdate}>更新时间</Button>
    </div>
  );
};
export default UseUpdate;
